<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link type="image/x-icon" href="/favicon.ico" rel="shortcut icon">

  <title>区域管理</title>

  {include file='public/comm_css.html'}

  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="js/html5shiv.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->
</head>

<body class="sticky-header">

<section>
    <!-- left side start-->
    {include file='public/left.html'}
    
    <!-- left side end-->
    
    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        {include file='public/header.html'}
        <!-- header section end-->

        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                区域管理
            </h3>
            <!--
            	作者：zhouming925@163.com
            	时间：2016-09-20
            	描述：
            
            <ul class="breadcrumb">
                <li>
                    <a href="#">Dashboard</a>
                </li>
                <li>
                    <a href="#">Data Table</a>
                </li>
                <li class="active"> Basic Table </li>
            </ul>
            -->
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
            		<div class="col-xs-1">
					<select class="form-control m-bot15">
	                    <option>江苏省</option>
	                </select>            			
            		</div>
            		<div class="col-xs-1">
					<select class="form-control m-bot15">
	                    <option>南京市</option>
	                </select>            			
            		</div>
            		<div class="col-xs-2"></div>
            		<div class="col-xs-2"></div>
            		<div class="col-xs-4">
	                    <div class="form-horizontal">
	                        <label class="control-label col-sm-4">区域经理查询</label>
	                        <div class="col-sm-8">
	                            <select class="form-control m-bot15">
	                                <option>1</option>
	                            </select>
	                        </div>
	                    </div>
            		</div> 
            		<div class="col-xs-2">
            			<a href="#" id="updateAreaInfo" class="btn btn-success active btn-sm">更新区域信息</a>
            		</div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <section class="panel">
                        <div class="panel-body">
                            <table class="table  table-hover text-center">
                                <thead class="text-center">
                                <tr>
                                    <th class="text-center">区域名称</th>
                                    <th class="text-center">省份</th>
                                    <th class="text-center">城市</th>
                                    <th class="text-center">区域经理</th>
                                </tr>
                                </thead>
                                <tbody>
                                	{foreach from=$area_info item=area}
                                <tr>
                                    <td>{$area.name}</td>
                                    <td>{$area.province_name}</td>
                                    <td>{$area.city_name} </td>
                                    <td>
                                    		{if $area.username == ''}
                                    		 <span class="label label-danger label-mini">未分配区域经理</span>
                                    		 <a href="/area/area_detail/{$area.id}" class="btn btn-success active btn-xs">去分配</a>
                                    		{else}
                                    		<a href="#" class="btn btn-info active btn-xs">{$area.username}</a>
                                    		<a href="/area/area_detail/{$area.id}" class="btn btn-success active btn-xs">修改</a>
                                    		{/if}
                                    </td>
                                </tr>
                                {/foreach}
                                </tbody>
                            </table>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <footer>
            2014 &copy; AdminEx by ThemeBucket
        </footer>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

{include file="public/comm_js.html"}
<script type="text/javascript" src="/assets/js/custom/manager.js"></script>
</body>
</html>
